const express = require("express");
const router = express.Router();
const articleController = require("../controller/articleController");
/**
 * @api {get} api/articleList 获取文章列表
 * @apiHeader {String} Authorization token值，放在请求头中
 * @apiDescription articleList功能说明
 * @apiName articleList
 * @apiGroup article
 * @apiQuery {Number} pageSize 每页显示条数
 * @apiQuery {Number} pageNum 当前页码
 * @apiSuccess {String} msg 请求成功返回提示信息
 * @apiSuccessExample {json} Success-Response:
 * {
 *     "msg": "账号注册成功",
 *     "status": 200,
 *     "data": null
 * }
 * @apiSampleRequest api/articleList
 * @apiVersion 1.0.0
 */
router.get("/articleList", articleController.articleList);
module.exports = router;
